package cn.kust.microtourismcommon.util;


import cn.hutool.core.util.ReUtil;
import cn.kust.microtourismcommon.constant.IdentityConstants;

import javax.servlet.http.HttpServletRequest;

public  class HttpArgsUtils {




    public static String parsePhone(HttpServletRequest request){
        return request.getHeader(IdentityConstants.USER_PHONE);
    }
    public static String parseUserId(HttpServletRequest request){
        return request.getHeader(IdentityConstants.USER_ID);
    }



    public static boolean isMatch(String a, String b){
        boolean flag = true;
        flag = ReUtil.isMatch(a,b);
        return flag;
    }


//    public static String parseIdentity(HttpServletRequest request){
//        request.getHeader("Authorization");
//    }
}
